/*
 * @Descripttion: 说明
 * @version: v1.0.0
 * @Author: chufengpei
 * @Date: 2021-03-07 11:35:10
 * @LastEditors: sueRimn
 * @LastEditTime: 2021-03-07 16:45:42
 */
import Vue from 'vue';
import EmployeeQuery from './components/EmployeeQuery.vue'
// import Hello from './components/Hello.vue'
// let app1 = new Vue({
//     el:'.app',
//     data:{
//         name: 'TypeScript'
//     },
//     template: `<h1> Hello {{ name }}</h1>`
// })
let app = new Vue({
    el: '.app',
    components: {
        EmployeeQuery
    },
    template: `<employee-query @query="getParam" :department="department" />`,
    data: {
        department: [
            { department: '技术部', departmentId: 1 },
            { department: '产品部', departmentId: 2 },
            { department: '市场部', departmentId: 3 },
            { department: '运营部', departmentId: 4 }
        ]
    },
    methods:{
        getParam: function(param: any){
            console.log(param)
        }
    }
})
// let app2 = new Vue({
//     el: '.app',
//     components: {
//         Hello
//     },
//     template: `<hello />`
// })